<%
var headerPart = {
%>
<style>
	html{background-color: #fff!important;}
</style>
<% }; %>
<% layout("/layouts/micro.html",{headerSection:headerPart}){ %>
<div class="childrenBody">
    <div class="layui-tab-content">
	<form id="inputForm" action="${ctx}/sys/dict/save" method="post" class="layui-form">
		<input type="hidden" name="id" value="${dict.id}"/>
		<#message content="${message!}"/>
			
		<div class="layui-form-item">
			<label class="layui-form-label">键值：</label>
			<div class="layui-input-inline">
				<input type="text" name="value" value="${dict.value}" htmlEscape="false" maxlength="200" class="layui-input" lay-verify="required"/>
			</div>		
			<div class="layui-form-mid "><font color="red">*</font> </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">标签：</label>
			<div class="layui-input-inline">
				<input type="text" name="label" value="${dict.label}" htmlEscape="false" maxlength="200" class="layui-input" lay-verify="required"/>
			</div>
			<div class="layui-form-mid "><font color="red">*</font> </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">类型：</label>
			<div class="layui-input-inline">
				<input type="text" name="type" value="${dict.type}" htmlEscape="false" maxlength="200" class="layui-input" lay-verify="required"/>
			</div>
			<div class="layui-form-mid "><font color="red">*</font> </div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">描述：</label>
			<div class="layui-input-inline">
				<input type="text" name="description" value="${dict.description}" htmlEscape="false" maxlength="200" class="layui-input" lay-verify="required"/>
			</div>
			<div class="layui-form-mid "><font color="red">*</font> </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">排序：</label>
			<div class="layui-input-inline">
				<input type="text" name="sort" value="${dict.sort}" htmlEscape="false" maxlength="200" class="layui-input" lay-verify="required"/>
			</div>
		</div>
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">备注:</label>
			<div class="layui-input-block">
				<textarea name="remarks" htmlEscape="false" rows="3" maxlength="200" class="layui-textarea">${dict.remarks}</textarea>
			</div>
		</div>
		
		<div class="layui-form-item layui-hide">
	    	<div class="layui-input-block">
	    		<%if(shiro.hasPermission("sys:dict:edit")){%>
      				<button class="layui-btn  layui-btn-sm" lay-filter="dictForm" id="dictForm" lay-submit>保 存</button>
      			<%}%>
	       		<button type="reset" class="layui-btn  layui-btn-sm layui-btn-primary" onclick="history.go(-1)">返回</button>
		    </div>
	  	</div>
	</form>
	</div>
</div>
<script>
    layui.use(['form','laydate'], function(){
        var form = layui.form,laydate = layui.laydate;
        form.render();
    });
</script>
<%}%>